﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DetailedView.aspx.cs" Inherits="_5._3._2_NorthWind_Task.DetailedView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Button ID="Button_Back" runat="server" Text="Back" OnClick="Button_Back_Click" />
    <asp:DetailsView ID="DetailsViewEmployee" runat="server" Height="50px" Width="414px">
    </asp:DetailsView>
    <hr />
    <asp:FormView ID="FormViewEmployee" runat="server">
        <ItemTemplate>
            <table border="1">
                <tr>
                    <td>
                        Name:
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem, "TitleOfCourtesy") %>
                        <%# DataBinder.Eval(Container.DataItem, "FirstName") %>
                        <%# DataBinder.Eval(Container.DataItem, "LastName") %>
                    </td>
                </tr>
                <tr>
                    <td>
                        Title
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem, "Title") %>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:FormView>
    <hr />
    <asp:Repeater runat="server" ID="EmployeesRepeater">
        <ItemTemplate>
            <%# DataBinder.Eval(Container.DataItem, "FirstName") %>
            <%# DataBinder.Eval(Container.DataItem, "LastName") %>
            <br />
        </ItemTemplate>
    </asp:Repeater>
    <hr />
    <asp:ListView ID="EmployeesListView" runat="server">
        <ItemTemplate>
            <%# Eval("FirstName") + " " + Eval("LastName")%>
        </ItemTemplate>
    </asp:ListView>
    </form>
</body>
</html>
